#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_datatype_string.py
# author:Jackiex
# datetime:2022/10/18 17:27
# software: PyCharm

"""
this is function  description 
"""

# word = '字符串'
# sentence = "这是一个句子。"
# paragraph = """这是一个段落，
# 可以由多行组成"""
# paragraph1 = '''这是另外一个段落，
# 可以由多行组成'''
#
# print(word)
# print(sentence)
# print(paragraph)
# print(paragraph1)

str1 = "Runoob"
# print(str1)
#
# print(str1[0:3])
#
# print(str1[0:-1])
#
# print(str1[2:])

# print(str1*2)
#
# print(str1+'你好')

print('------------------------------')

print('hello\nrunoob')  # 使用反斜杠(\)+n转义特殊字符
print(r'hello\nrunoob')  # 在字符串前面添加一个 r，表示原始字符串，不会发生转义